<%@ Page Language="C#" MasterPageFile="~/Common/WebSiteMaster.master" AutoEventWireup="true" CodeBehind="B_Sample1.aspx.cs" Inherits="ScottCateAjax2008.Lesson08.B_Sample1" Title="Build a Sample Control" %>
<%@ Register Assembly="ScottCateAjax2008" Namespace="ScottCateAjax2008.Lesson08.Sample1" TagPrefix="cc1"%>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <asp:ScriptManager ScriptMode="debug" ID="SM1" runat="server" />

    This is the default control that is built as a sample for the online documentation.<br />
    <br />
    The idea of this control is to simple enable and disable a button, based on some
    simple rules. These rules are applied to the default length of a textbox. So the
    button can only be submitted if the textbox is validated, based on a few simple
    rules.<br />
    <br />
    This is a great example, because I can build it live, and if you want more help,
    because it's the default sample in the documentation, there is plenty of online
    help, and others talking about it.<br />
    <br />
    This page, shows the control in action, and the links at the top of the page, show
    the source code of the control.<br /><br /><br /><br /><br />
    <asp:TextBox ID="TextBox1" runat="server" />
    <asp:Button ID="Button1" runat="server" Text="Button" />
    
    <cc1:DisabledButtonExtender 
        ID="DisabledButtonExtender1" 
        DisabledText="Disabled"
        TargetButtonID="Button1"
        TargetControlID="TextBox1" 
        runat="server" />
</asp:Content>
